import request from '@/utils/request'
import Qs from 'qs'
// 运维人员列表
export function getList (params) {
  return request({
    url: '/api/ma/admin/getMaintainList',
    method: 'get',
    params
  })
}
//添加运维人员
export function addMaintain (data) {
  return request({
    url: '/api/ma/admin/addMaintain',
    method: 'post',
    data:Qs.stringify(data),
    headers:{'content-type': 'application/x-www-form-urlencoded'}
  })
}
//编辑运维人员
export function updateMaintain (data) {
  return request({
    url: '/api/ma/admin/updateMaintain',
    method: 'post',
    data:Qs.stringify(data),
    headers:{'content-type': 'application/x-www-form-urlencoded'}
  })
}

// 医院下拉框
export function dropDownHospital (params) {
  return request({
    url: '/api/hospital/admin/dropDownHospital',
    method: 'get',
    params
  })
}